package com.ld.security.server.admin.modules.msg.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.base.SuperPo;
import com.ld.security.common.core.base.SuperVo;
import com.ld.security.common.mybatis.anno.CollectKey;
import com.ld.security.common.mybatis.anno.GroupKey;
import com.ld.security.common.mybatis.anno.JoinKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.constant.NumberTypeConstant;
import com.ld.security.server.admin.modules.msg.constant.MsgGroupNewsUserRelConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 特定群组下的消息状态查询
 */
@Data
@TableName("msg_group_news_user_rel")
public class MyGroupNewsTotalVo implements SuperVo ,SuperPo {

    @ApiModelProperty("群组名称")
    @SqlKey
    @GroupKey
    private String groupName;

    @SqlKey(name = "id")
    @CollectKey(numberFunc = NumberTypeConstant.count)
    @ApiModelProperty("总数")
    private Integer total;


    @SqlKey
    @GroupKey
    @ApiModelProperty("群组编号")
    private String  groupId;

    @SqlKey(tableField = false)
    @ApiModelProperty("状态")
    private MsgGroupNewsUserRelConstant.msgStatus msgStatus;

    @SqlKey(tableField = false)
    @ApiModelProperty("用户编号")
    private String userId;


}
